package net.osin.playscalajs.GlobalStateManagement

import com.thoughtworks.binding.Binding
import org.lrng.binding.html
import org.scalajs.dom.html.Div

class Component2 {
  @html
  def render:Binding[Div] =
  {
    println(Store.count.value)
    <div>
      <p>我是Componet2</p>
      {Store.count.bind.toString}
    </div>
  }
}
